package rentadomus

class Warehouse{

    Place idPlace
    String warehouseType
    boolean hasOffice
    
    static constraints = {
        warehouseType inList:["Industrial","Storage","Other"]
    }
    
    static mapping ={
        version false
        idPlace column: 'id_place'
        warehouseType column:'warehouse_type'
    }
    
    public String toString(){
        "${idPlace.toString()}"
    }
}
